package com.central.rearService.service

import com.baomidou.mybatisplus.extension.plugins.pagination.Page
import com.central.common.entity.Report
import com.central.common.model.CommonResult
import com.central.common.model.PageResult
import com.central.common.model.PageVo
import com.central.common.model.SysUser
import com.central.common.service.ISuperService
import com.central.post.pojo.report.GetReportListDto
import com.central.post.pojo.report.GetReportListVo
import com.central.post.pojo.report.ReportInsertDto

/**
 * @author  fly
 * @date  2021/5/26 14:51
 * @version 1.0
 */
interface ReportService : ISuperService<Report> {


    /**
     * 添加举报
     */
    fun addReport(reportInsertDto: ReportInsertDto, sysUser: SysUser): CommonResult<Boolean>

    /**
     * 移除举报
     */
    fun remove(ids: String): CommonResult<Boolean>

    /**
     * 获取举报列表
     */
    fun getReportList(pageVo: PageVo, getReportListDto: GetReportListDto, sysUser: SysUser): CommonResult<Page<GetReportListVo>>

}